package cn.edu.jnu.supershopper;

import android.graphics.Bitmap;

import java.io.Serializable;

public class Book implements Serializable {
    private String name = "暂无信息"; //书名
    private String isbn = "0";//ISBN码
    private String author;//作者
    private String authorlntro;//作者简介
    private String photoUrl;//图片封面
    private String publishing;//出版社
    private String published;//出版时间
    private String description;//图书简介
    private String doubanScore;//豆瓣评分
    private int imageId = R.drawable.book_no_name; //环境中的测试图片
    private String imagePath;//本地图片
    private String label;//标签

    public Book(String name, int imageId) {
        this.name = name;
        this.imageId = imageId;
        this.isbn = "暂无信息";
        this.author = "暂无信息";
        this.authorlntro = "暂无信息";
        this.photoUrl = "暂无信息";
        this.publishing = "暂无信息";
        this.published = "暂无信息";
        this.description = "暂无信息";
        this.doubanScore = "暂无信息";
        this.imagePath = null;
        this.label = "正常";
    }
    public void setName(String name) {this.name = name;}
    public void setIsbn(String isbn) {this.isbn = isbn;}
    public void setAuthor(String author) {this.author = author;}
    public void setAuthorlntro(String authorlntro) {this.authorlntro = authorlntro;}
    public void setPhotoUrl(String photoUrl) {this.photoUrl = photoUrl;}
    public void setPublishing(String publishing) {this.publishing = publishing;}
    public void setPublished(String published) {this.published = published;}
    public void setDescription(String description) {this.description = description;}
    public void setDoubanScore(String doubanScore) {this.doubanScore = doubanScore;}
    public void setimagePath(String imagePath) {this.imagePath = imagePath;}
    public void setLabel(String label){this.label=label;}

    public String getName() {return this.name;}
    public int getImageId() {return this.imageId;}
    public String getIsbn() {return this.isbn;}
    public String getAuthor() {return this.author;}
    public String getAuthorlntro() {return this.authorlntro;}
    public String getPhotoUrl() {return this.photoUrl;}
    public String getPublishing() {return this.publishing;}
    public String getPublished() {return this.published;}
    public String getDescription() {return this.description;}
    public String getDoubanScore() {return this.doubanScore;}
    public String getimagePath() {return this.imagePath;}
    public String getLabel() {return this.label;}

}

